/* BOSS游戏样式 */
.boss-game-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 侧边栏样式 */
.boss-sidebar {
    background: rgba(0, 0, 0, 0.7);
    border-right: 2px solid #333;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
}

.boss-right-sidebar {
    border-right: none;
    border-left: 2px solid #333;
}

.sidebar-content {
    height: 100%;
}

/* 游戏区域样式 */
.boss-game-area {
    background: #1a1a2e; /* 改为暗色主题，不要纯黑色 */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* BOSS血量条 */
.boss-health-bar-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 10;
}

.boss-name {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}

.boss-health-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #333;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.boss-health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 13px;
    transition: width 0.3s ease;
    position: relative;
}

.boss-health-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.boss-health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 游戏画布容器 */
.game-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#bossGameCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #1a1a2e; /* 改为暗色主题，不要纯黑色 */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* 游戏控制按钮 */
.game-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.game-controls .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.game-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 状态项样式 */
.status-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6b6b;
}

.status-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 5px;
}

.status-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* 血量条样式 */
.health-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* 控制信息样式 */
.controls-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #4ecdc4;
}

.control-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.control-item kbd {
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    min-width: 40px;
    text-align: center;
}

.control-desc {
    font-size: 0.9rem;
    color: #ccc;
}

/* 物品栏样式 */
.inventory-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #feca57;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.inventory-slot:hover {
    border-color: #feca57;
    transform: scale(1.05);
}

.inventory-slot.filled {
    background: rgba(254, 202, 87, 0.2);
    border-color: #feca57;
}

.slot-content {
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
}

/* BOSS信息样式 */
.boss-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #ff9ff3;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

/* 弱点列表样式 */
.weakness-list, .strategy-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.weakness-item, .strategy-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.weakness-item:last-child, .strategy-item:last-child {
    margin-bottom: 0;
}

/* 当前状态样式 */
.current-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #54a0ff;
}

.status-message {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

/* 暂停菜单样式 */
.pause-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pause-content {
    background: rgba(26, 26, 46, 0.95);
    border: 3px solid #ff6b6b;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.pause-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pause-options .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pause-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .boss-sidebar {
        padding: 15px;
    }
    
    .status-item, .controls-info, .inventory-info, .boss-stats, .weakness-list, .strategy-list, .current-status {
        padding: 10px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .boss-sidebar {
        height: auto;
        max-height: 30vh;
    }
    
    .boss-game-area {
        height: 70vh;
    }
    
    #bossGameCanvas {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 滚动条样式 */
.boss-sidebar::-webkit-scrollbar {
    width: 6px;
}

.boss-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.boss-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.boss-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}